package com.hbu.housingbrokerug.activities;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;

import com.hub.R;
/**
 * 
 * @author Lubwama Samuel
 *
 */
public class Splash extends Activity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.splash);
		Handler main_act=new Handler();
		main_act.postDelayed(new SplashHandler(), 2000);
    }

    class SplashHandler implements Runnable{
    	@Override
    	public void run() {
    //		startActivity(new Intent(getApplication(),Main.class));
    		Intent intent = new Intent(getApplicationContext(), CategoryType.class);
    		intent.putExtra("CATEGORY_TYPE", "business");
    		startActivityForResult(intent, 100);
    		Splash.this.finish();
    	}
    	
    }
}
